package spring.chobo;

public class UserDaoTest {

	public static void main(String[] args) throws Exception{
		UserDao dao = new DaoFactory().userDao();
		User user=new User();
		user.setId("white");
		user.setName("김길동2");
		user.setPass("test");
		
		dao.add(user);
		System.out.println(user.getId()+"등록완료..");
		
		User user2=dao.get(user.getId());
		System.out.println(user2.getName());
		System.out.println(user2.getPass());
		System.out.println(user2.getId()+"조회완료..");
	}
}
